<?php
    $username = $_POST['username'];
    $password = $_POST['password'];
    $nickname = $_POST['nickname'];

    $link = mysqli_connect('localhost','root','root','shadouyouu');
    $n = rand(5, 10000) + rand(5, 10000);
    $sql = "INSERT INTO `username` VALUES($n, '$username', '$password', '$nickname', '')";

    $res = mysqli_query($link,$sql);

    mysqli_close($link);

    echo json_encode([
        "result" => $res,
        "n" => $n,
        "sql" => $sql
    ]);
   



?>